from django.db import models
from django.contrib.auth.models import User
from kalapankki.album.models import Album

STATE_CHOICES=(('W','Waiting'),('F', 'Finished'),)
# Create your models here.
class Payment(models.Model):
    user = models.ForeignKey(User)
    album = models.ForeignKey(Album)
    amount = models.PositiveIntegerField()
    state = models.CharField(max_length=1, choices=STATE_CHOICES, default="W")
    ref_num = models.TextField(blank=True)